package top.chmin.project.cloud.sys.dict.type;

import java.util.List;
import top.chmin.project.cloud.common.Page;
import org.springframework.web.bind.annotation.RestController;
import jakarta.annotation.Resource;



/**
 * chmin
 * 2024-01-26 14:02:38
 * cloud-code
 */
@RestController
public class DictTypeController implements
/* append $controllerSelectOptionRestAppender$ */
        DictTypeSaveRest,
        DictTypeSelectRest,
        DictTypeUpdateRest,
        DictTypeDeleteRest,
        DictTypePageRest {

    @Resource
    private DictTypeService dictTypeService;

    @Override
    public int save(DictTypeSaveRest.P p) {
        return dictTypeService.save(p);
    }

    @Override
    public DictTypeSelectRest.R select(DictTypeSelectRest.P p) {
        return dictTypeService.select(p);
    }

    @Override
    public int update(DictTypeUpdateRest.P p) {
        return dictTypeService.update(p);
    }

    @Override
    public int delete(DictTypeDeleteRest.P p) {
        return dictTypeService.delete(p);
    }

    @Override
    public Page<DictTypePageRest.R> page(DictTypePageRest.P p) {
        return dictTypeService.page(p);
    }
    /* append $controllerSelectOptionMethodAppender$ */
}
